/**
 *
 */
package net.haroeris.wh40kcampaign.form;

import java.util.Collection;

import net.haroeris.wh40kcampaign.beans.to.PlayerTO;

import org.springframework.stereotype.Component;

/**
 * @author user
 *
 */
@Component("userAdminForm")
public class UserAdminForm {

    private Collection<PlayerTO> players;

    private PlayerTO selectedPlayer;

    private PlayerTO newPlayer;

    private String newPlayerPassword;

    public void init(){
        newPlayer= new PlayerTO();
        selectedPlayer= new PlayerTO();
    }

    public Collection<PlayerTO> getPlayers() {
        return players;
    }

    public void setPlayers(Collection<PlayerTO> players) {
        this.players = players;
    }

    public PlayerTO getSelectedPlayer() {
        return selectedPlayer;
    }

    public void setSelectedPlayer(PlayerTO selectedPlayer) {
        this.selectedPlayer = selectedPlayer;
    }

    public PlayerTO getNewPlayer() {
        return newPlayer;
    }

    public void setNewPlayer(PlayerTO newPlayer) {
        this.newPlayer = newPlayer;
    }

    public String getNewPlayerPassword() {
        return newPlayerPassword;
    }

    public void setNewPlayerPassword(String newPlayerPassword) {
        this.newPlayerPassword = newPlayerPassword;
    }

}
